package com.gable.exhibition.dao;

import com.gable.exhibition.model.Train;
import com.gable.exhibition.view.TrainView;

import java.util.List;

public interface TrainDao {
    int deleteByPrimaryKey(Long trainId);

    int insert(Train record);

    int insertSelective(Train record);

    Train selectByPrimaryKey(Long trainId);

    int updateByPrimaryKeySelective(Train record);

    int updateByPrimaryKey(Train record);

    /**
     * 获取培训总条数
     * @param trainView
     * @Create user SJX
     * @Create date 2018/3/6
     * @return
     */
    int queryTrainCount(TrainView trainView);

    /**
     * 获取培训总条数列表分页
     * @param trainView
     * @Create user SJX
     * @Create date 2018/3/6
     * @return
     */
    List<TrainView> queryTrainList(TrainView trainView);

    /**
     * 获取培训记录明细
     * @param trainId
     * @Create user SJX
     * @Create date 2018/3/6
     * @return
     */
    TrainView queryTrainInfo(Long trainId);
}